<?php $position = 1?>

<h3><?php echo $cats[$position]['name']?></h3>
<ul>
  <?php $contents = Doctrine::getTable('Content')->doFetchArray(
            array(
                    'categoryId'=>$cats[$position]['id'], 
                    'limit'=>(isset($limit) ? $limit : 3
                 )
        ));?>

  <?php foreach ($contents as $content):?>
    <li>
        <?php echo image_tag("http://".$content['cover'], array('style'=>'float:left;margin:0 5px 0 0;width:60px;height:90px;'));?>
        
        <?php echo link_to($content['title'], 'content/leaf1?id='.$content['id'], array('class'=>'uppercase'));?>
        <div class="font11 gray">
          <?php echo myTools::utf8_substr($content['intro'], 0, 50)?>
        </div>
    </li>
  <?php endforeach;?>
</ul>